package com.hup.sokoban.model.main;

import com.alibaba.fastjson.annotation.JSONType;
import com.hup.sokoban.model.common.MapItem;
import com.hup.utils.commons.io.BaseConfig;
import com.hup.utils.swing.model.BaseWindowConfig;
import lombok.Data;

/**
 * @author hugan
 * @date 2020/5/12
 */
@Data
@JSONType(orders={"appPort"})
public class MainConfig implements BaseConfig<MainConfig> {

    public int appPort = 38088;

    public BaseWindowConfig windowConfig = new BaseWindowConfig();
    /**
     * 最近一次加载的关卡;
     * {@link MapItem#getPath()}
     */
    public String lastLoadedMapPath;

    /**
     * 静音
     */
    public boolean mute;

    @Override
    public boolean afterLoadFromFileOrReset(MainConfig fileConfig) {
        return false;
    }

}
